package com.afei.oid;

import android.content.Context;

public class FactoryClass {

	private static GetPlayInfo mGetPlayInfo = null;
	public static GetPlayInfo FactoryGetPlayInfo(Context context,String file,int pagecount)
	{
		if(mGetPlayInfo == null)
		{
			mGetPlayInfo = new GetPlayInfo(context,file,pagecount);
		}
		return mGetPlayInfo;
	}
	public static GetPlayInfo FactoryGetPlayInfo()
	{
		return mGetPlayInfo;
	}
	public static String OidFile2DbFile(String file)
	{
		String db;
		db = file.substring(0,file.lastIndexOf('.'));
		db += ".db";
		return db;
	}
}
